home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / gnome-vfs-2.0 / libgnomevfs / gnome-vfs-mime-utils.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-05-01  |  1.9 KB  |  60 lines

  1. /*
  2.  * Copyright (C) 1997-2001 Free Software Foundation
  3.  * Copyright (C) 2000, 2001 Eazel, Inc.
  4.  * All rights reserved.
  5.  *
  6.  * This file is part of the Gnome Library.
  7.  *
  8.  * The Gnome Library is free software; you can redistribute it and/or
  9.  * modify it under the terms of the GNU Library General Public License as
  10.  * published by the Free Software Foundation; either version 2 of the
  11.  * License, or (at your option) any later version.
  12.  *
  13.  * The Gnome Library is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  * Library General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Library General Public
  19.  * License along with the Gnome Library; see the file COPYING.LIB.  If not,
  20.  * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  21.  * Boston, MA 02111-1307, USA.
  22.  */
  23.  
  24. #ifndef GNOME_VFS_MIME_UTILS_H
  25. #define GNOME_VFS_MIME_UTILS_H
  26.  
  27. #include <glib/gtypes.h>
  28.  
  29. G_BEGIN_DECLS
  30.  
  31. /**
  32.  * GNOME_VFS_MIME_TYPE_UNKNOWN:
  33.  *
  34.  * The value returned for the MIME type when a file did
  35.  * not match any entries in the MIME database. May be
  36.  * treated as a file of an unknown type.
  37.  **/
  38. #define GNOME_VFS_MIME_TYPE_UNKNOWN "application/octet-stream"
  39.  
  40. /* Comparison of mime types */
  41. typedef enum {
  42.   GNOME_VFS_MIME_UNRELATED,
  43.   GNOME_VFS_MIME_IDENTICAL,
  44.   GNOME_VFS_MIME_PARENT
  45. } GnomeVFSMimeEquivalence;
  46.  
  47. GnomeVFSMimeEquivalence gnome_vfs_mime_type_get_equivalence (const char    *mime_type,
  48.                                  const char    *base_mime_type);
  49. gboolean                gnome_vfs_mime_type_is_equal        (const char    *a,
  50.                                  const char    *b);
  51.  
  52. const char             *gnome_vfs_get_mime_type_for_data    (gconstpointer  data,
  53.                                  int            data_size);
  54. char                   *gnome_vfs_get_mime_type             (const char    *text_uri);
  55.  
  56.  
  57. G_END_DECLS
  58.  
  59. #endif
  60.